import request from '@/utils/request'

// 查询内容信息列表
export function listTwxx(query) {
  return request({
    url: '/business/twxx/list',
    method: 'get',
    params: query
  })
}

// 查询内容信息详细
export function getTwxx(twxxId) {
  return request({
    url: '/business/twxx/' + twxxId,
    method: 'get'
  })
}

// 新增内容信息
export function addTwxx(data) {
  return request({
    url: '/business/twxx',
    method: 'post',
    data: data
  })
}

// 修改内容信息
export function updateTwxx(data) {
  return request({
    url: '/business/twxx',
    method: 'put',
    data: data
  })
}

// 删除内容信息
export function delTwxx(twxxId) {
  return request({
    url: '/business/twxx/' + twxxId,
    method: 'delete'
  })
}
